package com.learn.dubbo.common.dict.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.learn.dubbo.common.dict.DictRemoteService;
import com.learn.dubbo.common.dict.mapper.SysDictItemMapper;
import com.learn.dubbo.common.dict.mapper.SysDictTypeMapper;
import com.learn.dubbo.entity.dict.SysDictItem;
import com.learn.dubbo.entity.dict.SysDictType;

@Service
public class DictRemoteServiceImpl implements DictRemoteService {
	
	@Autowired
	private SysDictTypeMapper sysDictTypeMapper;
	
	@Autowired
	private SysDictItemMapper sysDictItemMapper;
	
	/**
     * 查询出所有记录
     */
	@Override
    public List<SysDictType> findAllSysDictType(){
    	List<SysDictType> list = sysDictTypeMapper.findAllSysDictType();
    	return list;
    }
    
    
    /**
     * 查询出所有记录
     */
	@Override
    public List<SysDictItem> findSysDictItemByTypeCode(String typeCode){
    	List<SysDictItem> list = sysDictItemMapper.findSysDictItemByTypeCode(typeCode);
    	return list;
    }
    
    


}
